//
//  LoadingView.m
//  MyFramework
//
//  Created by 余洋 on 2018/7/25.
//  Copyright © 2018年 余洋. All rights reserved.
//

#import "LoadingView.h"
#import <UIImage+GIF.h>

@interface LoadingView()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation LoadingView

- (void)awakeFromNib {
    [super awakeFromNib];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"catloading" ofType:@"gif"];
    NSData *data = [NSData dataWithContentsOfFile:path];
    self.imageView.image = [UIImage sd_animatedGIFWithData:data];
    self.imageView.layer.cornerRadius = 60.f;
}

@end
